package com.future.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Auther: 田坑坑
 * @Date: 2022/6/20 14:01
 * @Description:  我题序等你回
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "userinfo")
public class Userinfo {
    @TableId(value = "userId", type = IdType.AUTO)
    private Integer userid;

    @TableField(value = "userName")
    private String username;

    @TableField(value = "passWord")
    private String password;

    @TableField(value = "realName")
    private String realname;

    @TableField(value = "studentPhone")
    private String studentphone;

    @TableField(value = "sex")
    private String sex;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "birthday")
    private Date birthday;

    @TableField(value = "img")
    private String img;

    @TableField(value = "status")
    private String status;

    public static final String COL_USERID = "userId";

    public static final String COL_USERNAME = "userName";

    public static final String COL_PASSWORD = "passWord";

    public static final String COL_REALNAME = "realName";

    public static final String COL_STUDENTPHONE = "studentPhone";

    public static final String COL_SEX = "sex";

    public static final String COL_BIRTHDAY = "birthday";

    public static final String COL_IMG = "img";

    public static final String COL_STATUS = "status";
}